import "https://cdn.bootcdn.net/ajax/libs/jquery/1.12.4/jquery.min.js";

function index() {
    let userlogin = $('.userlogin')
    let usernames = $('.usernames')
    console.log( $('.userlogin')[0])
    if (localStorage.getItem('username')) {

        $(".userlogin").attr('style','display: none');
        $(".usernames").attr('style','display: block');
        usernames.find('a').html(localStorage.getItem('username'))
    } else {
        $(".userlogin").attr('style','display: block');
        $(".usernames").attr('style','display: none');
    }
}

export {
    index
}